﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbstractFactoryPattern
{
    public class ShapeFactory : AbstractFactory
    {
        public override Color GetColor(ColorType colorType)
        {
            return null;
        }

        public override Shape GetShape(ShapeType shapeType)
        {
            if (shapeType == ShapeType.CIRCLE)
            {
                return new Circle();
            }
            else if (shapeType == ShapeType.RECTANGLE)
            {
                return new Rectangle();
            }
            else if (shapeType == ShapeType.SQUARE)
            {
                return new Square();
            }

            return null;
        }
    }
}
